package com.qijian.maindata.domain.vo;

import com.qijian.maindata.domain.InspectionResult;
import com.qijian.maindata.domain.ProcessOrderUsers;
import lombok.Data;

import javax.validation.constraints.*;
import java.util.List;
import java.util.Set;

/**
 * @author qijian
 */
@Data
public class ProcessOperationVo {

    private Long workId;

    @NotNull(message = "作业工单不能为空")
    @Size(message = "作业工单不能为空", min = 1)
    private Set<Long> wuId;

    //延期原因
    private List<ProcessOrderUsers> reasonList;

    @NotNull(message = "状态不能为空")
    @Min(message = "状态必须是[接单，报工，停机，验收]", value = 0)
    @Max(message = "状态必须是[接单，报工，停机，验收]", value = 4)
    private Integer status;

    private String checkContent;

    private List<InspectionResult> results;
}
